
package com.xbongbong.message.domain.dao;

import com.xbongbong.message.domain.entity.PushLinkEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * PushLinkDao
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/2/19 10:48
 */
@Repository
@Mapper
public interface PushLinkDao {

    Integer insert(PushLinkEntity pushLink);

    void insertBatch(ArrayList<PushLinkEntity> pushLinkList);

    Integer update(PushLinkEntity pushLink);

    void readPushList(@Param("param") Map<String, Object> param);

    void deletePushList(@Param("param") Map<String, Object> param);

    void readAllPushLink(@Param("param") Map<String, Object> param);

    Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);

    PushLinkEntity getByKey(@Param("key") Integer key, @Param("corpid") String corpid);

    List<PushLinkEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    void apartTeam2DeleteMessage(@Param("param") Map<String, Object> param);

    Integer deleteByPushIdIn(@Param("pushIdIn")List<Long> pushIdIn, @Param("corpid") String corpid);
}